package scm.erp.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import scm.erp.core.mybatis.interceptor.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class CommonFields {
    // 新增用户
    @scm.erp.core.mybatis.interceptor.annotation.CreateUser
    private String createUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @scm.erp.core.mybatis.interceptor.annotation.CreateTime
    private LocalDateTime createTime;
    @scm.erp.core.mybatis.interceptor.annotation.UpdateUser
    private String updateUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @scm.erp.core.mybatis.interceptor.annotation.UpdateTime
    private LocalDateTime updateTime;
    @scm.erp.core.mybatis.interceptor.annotation.DeleteFlag
    private Integer deleteFlag;
}
